package com.alibaba.travel.thirdpart.service;

import com.alibaba.travel.common.model.dto.TopicLikesCountResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.alibaba.travel.common.utils.PageUtils;
import com.alibaba.travel.thirdpart.entity.UserLikesRecordEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户点赞记录表
 *
 * @author wherezy
 * @email wherezy@tom.com
 * @date 2023-03-06 14:49:51
 */
public interface UserLikesRecordService extends IService<UserLikesRecordEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 通过用户id 和 TopicType获取 当前用户点赞状态
     * @return
     * @param topicType
     */
    List<UserLikesRecordEntity> getStatus(String topicType);

    /**
     * 通过topicType和topicId，查询点赞数
     * @return
     * @param topicId
     */
    List<TopicLikesCountResponse> getLikesNumber(Long[] topicId);
}

